package grest.view;

/**
 *
 * @author Agustin
 */
import java.awt.*; 
import java.awt.event.*; 
import javax.swing.*;
/**
 *
 * @author Agustin
 */
    
    class VistaReservas extends JPanel{
    private JTable tblReservas = new JTable();
    private JPanel pnlBotones = new JPanel();
    private JButton btnAltaReserva = new JButton("ALTA RESERVA");
    private JButton btnBajaReserva = new JButton("BAJA RESERVA");
    private JButton btnModifReserva = new JButton("MODIFICAR RESERVA");
    
    
    public void paintComponent(Graphics g){
        super.paintComponent(g);
        this.setLayout(new BorderLayout(5,5));
        this.add(tblReservas,BorderLayout.CENTER);
        this.add(pnlBotones,BorderLayout.SOUTH);
        pnlBotones.setLayout(new GridLayout(1,3));
        pnlBotones.add(btnAltaReserva);
        pnlBotones.add(btnBajaReserva);
        pnlBotones.add(btnModifReserva);
        
    }
    
    public JTable getTable(){
        return tblReservas;
    }
    
    public JPanel getPanel(){
       return pnlBotones;
    }
}